package com.own.demo.lwf.threadTest;

/**
 * @version v1.0
 * @Description:java练习
 * @Author 李文峰
 * @Date 2023/4/29 0029 19:15
 * new Thread对象匿名重写run()方法
 */
public class TestNewThread {
    public static void main(String[] args) {
        new Thread("t"){
            @Override
            public void run() {
                for (int i = 0; i < 3; i++) {
                    System.out.println("thread t --" + i);
                }
            }
        }.start();
    }
}
